<?php
$div='zxccerdfsxcsdfSSSCVEE';
$divlistado='vista';
$formulario='zxccerdfsxcsdf';

$dats=date('isashiis'); 
?>

<div id="loginactivarsitioh"></div>



<div id="<?=$dats?>datosdevalidaciondelsistema"></div>



<?=$this->Json->validarsession($dats); ?>


<div id="<?=$dats?>datosdevalidaciondelsistema_2" align="center" style="display:none;" class="x-hide-display  x-window-body-default x-window-body-default">






<?php 

if(isset($error_entrada) && $error_entrada==true){ 
$bagcolors='#DFEDFF"';
$clors='color:#999999;';
}else{ 
$bagcolors='#DDDDFF';
$clors='color:#999999;';
 } 


     $chars = "123456789abcdefghjklmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ";  
      mt_srand((double)microtime()*1000000);   
      $i=0;
	  $pass="";
      while ($i != 6) {  
          $rand=mt_rand() % strlen($chars);  
          $tmp=$chars[$rand];  
          $pass=$pass . $tmp;  
          $chars=str_replace($tmp, "", $chars);  
          $i++;  
     }  
      $codigo=strrev($pass);  
 


 ?>


	
	<?=$this->For->formulario('',$dats);?>

	<?//= $this->For->input('','usffuario',14,'texto','inputn',0,15,'',0,0,'Usuario para el Sistema "XXX"')?>	

	
	
	<fieldset class="x-fieldset x-window-item x-fieldset-default" style="-moz-border-radius: 3px;width: 24px;">
	<legend class="x-fieldset-header x-fieldset-header-default">
	<span class="x-fieldset-header-text x-component x-component-default">Datos</span>&nbsp;
	</legend>
	
	
	
	<div style="width: 406px;" class="x-field x-form-item x-field-default">
	<label class="x-form-item-label x-form-item-label-left" style="margin-right: 5px; width: 100px;">Usuario:</label>
	<div style="width: 301px;" class="x-form-item-body ">


	<? echo $this->Form->input('usuario', array('id'=>'usuario','label'=>false,'alt'=>'Usuario','class'=>'inputnlogin x-form-field x-form-text','size'=>'20','style'=>'background-image:url(img/login/uid.png); background-repeat:no-repeat; background-position:right; -moz-border-radius: 3px; width: 284px;','value'=>''));?>
	

	</div>
	<div class="x-clear"><!-- --></div>
	</div>

	<div style="width: 406px;" class="x-field x-form-item x-field-default">
	<label class="x-form-item-label x-form-item-label-left" style="margin-right: 5px; width: 100px;">Clave:</label>
	<div style="width: 301px;" class="x-form-item-body ">

	<? echo $this->Form->input('clave', array('type'=>'password','label'=>false, 'id'=>'clave','alt'=>'Contrasena','class'=>'inputnlogin x-form-field x-form-text','alt'=>'Contrasena','size'=>'20','style'=>'background-image:url(img/login/key.png); background-repeat:no-repeat; background-position:right; -moz-border-radius: 3px; width: 284px;','value'=>''));?>

	</div>
	<div class="x-clear"><!-- --></div>
	</div>
	<br />
	<div style="width: 406px;" class="x-field x-form-item x-field-default">
<table border="0" width="100%">
<tr>
<td>
<fieldset class="x-fieldset x-window-item x-fieldset-default" style="-moz-border-radius: 3px;">
	<legend class="x-fieldset-header x-fieldset-header-default" align="center">
	<span class="x-fieldset-header-text x-component x-component-default">Codigo de Validaci&oacute;n</span>&nbsp;
	</legend>
	<table border="0" width="100%" height="60px">
<tr>
<td>
<? $codigo=strtr(strtoupper($codigo),"àèìòùáéíóúçñäëïöü","ÀÈÌÒÙÁÉÍÓÚÇÑÄËÏÖÜ");?>
<input style="background-image:url(captcha/crea_imagen.php?code=<?=$codigo?>);-moz-border-radius: 3px; width: 180px; height:50px;" size="20" class="x-form-field x-form-text" type="text" disabled="disabled">

</td>
<td align="center">

<?//$this->For->input('','usuario',10,'texto','inputnonly',0,20,'',1,0)?>

<? echo $this->Form->input('codigo', array('type'=>'text','label'=>false, 'id'=>'clave','class'=>'inputncapchat x-form-field x-form-text','alt'=>'Contrasena','size'=>'20','style'=>'-moz-border-radius: 3px; width: 180px; height:50px; font-weight:bold; font-size:29px; azimuth:center; text-transform: uppercase;','maxlength'=>'6','value'=>''));?>

<? echo $this->Form->input('imagen', array('type'=>'hidden','label'=>false, 'id'=>'imagen','value'=>$codigo));?>


<?php //echo $form->input('codigo', array('type'=>'text','label'=>false, 'id'=>'clave','class'=>'x-form-field x-form-text','alt'=>'Contrasena','size'=>'20','style'=>'-moz-border-radius: 3px; width: 180px; height:50px;font-weight:bold; font-size:29px; azimuth:center; margin-left:20px;','maxlength'=>'6','value'=>'','onblur'=>'if(this.value==\'\')','onfocus'=>'if(this.value==\'\') this.value=\'\';'));?>








 
 </td>
</tr>

</table>
	</fieldset>
</td>
</tr>
</table>

</fieldset>
	
	
<!--
	
	<div style="width: 440px; left: 4px; top: 231px;" class="x-toolbar x-window-item x-toolbar-footer x-docked x-docked-bottom x-toolbar-docked-bottom x-toolbar-footer-docked-bottom x-box-layout-ct">
	<div style="width: 434px; height: 22px;" class="x-box-inner">



	<em>
<input type="submit" value="Entrar" style="margin: 0pt; width: 75px; left: 353px; top: 0px;" class="x-btn x-box-item x-toolbar-item x-btn-default-small x-noicon x-btn-noicon x-btn-default-small-noicon x-btn-center" type="button"/>
	</em>

-->



</form>















</div>
<div id="actulissszassacee"></div>




